// 语句块
function addArduinoCod (Blockly) {
  //mpu
Blockly.Arduino['smartModule_mpu'] = function(block) {
  var dropdown_mpu2 = this.getFieldValue('mpu2');
  Blockly.Arduino.definitions_['setup_smart_mpu'] = '  mpu6050.InitMpu6050();\n';
  Blockly.Arduino.definitions_['include_smart_mpu'] = '#include "Mpu6050Module.h"\nMpu6050Module mpu6050;\n';
  Blockly.Arduino.definitions_['timer_run_mpu'] = ' mpu6050.GetInclination();\n';
  var code = 'mpu6050.'+dropdown_mpu2;
  return [code, Blockly.Arduino.ORDER_ATOMIC];
}
    return Blockly;
}
module.exports = addArduinoCod ;
